import request from '@/utils/request'
export function getDepartmentTree(params) {
  return request({
    url: '/api/Personal/MyDepartmentManage/GetDepartmentTree',
    method: 'get',
    params
  })
}
export function getDepartmentEmps(params) {
  return request({
    url: '/api/Personal/MyDepartmentManage/GetDepartmentEmps',
    method: 'get',
    params
  })
}
export function getEmployeeCompanyLimits(params) {
  return request({
    url: '/api/Personal/MyDepartmentManage/GetEmployeeCompanyLimits',
    method: 'get',
    params
  })
}
export function saveEmployeeCompanyLimits(data) {
  return request({
    url: '/api/Personal/MyDepartmentManage/SaveEmployeeCompanyLimits',
    method: 'post',
    data
  })
}

export function getEmployeeCompanyEmpLimits(params) {
  return request({
    url: '/api/Personal/MyDepartmentManage/GetEmployeeCompanyEmpLimits',
    method: 'get',
    params
  })
}
export function addEmployeeCompanyEmpLimit(data) {
  return request({
    url: '/api/Personal/MyDepartmentManage/AddEmployeeCompanyEmpLimit',
    method: 'post',
    data
  })
}
export function deleteEmployeeCompanyEmpLimit(id) {
  return request({
    url: '/api/Personal/MyDepartmentManage/DeleteEmployeeCompanyEmpLimit',
    method: 'get',
    params: { id }
  })
}